function dialog(title,content,BtnStatus){
	var BtnHtml = '';
	var BtnOpera = '';
	
	if(BtnStatus == 1){
		BtnOpera = '<a href="javascript:;" class="weui_btn_dialog primary comfirmBtn on" id="comfirmBtn" style="width:100%">OK</a>';
	}else if(BtnStatus == 2){
		BtnOpera = '<a href="javascript:;" class="weui_btn_dialog primary giveBtn on" id="giveBtn" style="width:100%">NO</a>';
	}else if(BtnStatus == 3){
		BtnOpera = '<a href="javascript:;" class="weui_btn_dialog default giveBtn" id="giveBtn"   style="width:50%">NO</a>'+
			'<a href="javascript:;" class="weui_btn_dialog primary comfirmBtn" id="comfirmBtn" style="width:50%">Yes</a>';
	}else if(BtnStatus == 4){
		BtnOpera = '<a href="javascript:;" class="weui_btn_dialog default giveBtn" id="giveBtn"   style="width:50%">View My Shopping Lists</a>'+
				'<a href="javascript:;" class="weui_btn_dialog default comfirmBtn" id="comfirmBtn" style="width:50%">OK</a>';
	}
	
	
		
	BtnHtml = '<div class="weui_dialog_confirm smallstonehead" id="dialog">'+
    '<div class="weui_mask"></div>'+
 '   <div class="weui_dialog">'+
        '<div class="weui_dialog_hd"><strong class="weui_dialog_title">'+ title +'</strong><span class="mui-icon mui-icon-closeempty"></span></div>'+
       ' <div class="weui_dialog_bd">'+ content +'</div>'+
       ' <div class="weui_dialog_ft">'+ BtnOpera +'  </div>'+
   ' </div>'+
	'</div>';
	
	$('body').append(BtnHtml);
	
	$('#dialog').find('span.mui-icon').one('click', function () {
        $('#dialog').hide();
        $('#dialog').remove();
    });
    $('#dialog').find('.giveBtn').one('click', function () {
        $('#dialog').hide();
        $('#dialog').remove();
    });
}

function toast(overText){
	var toastHtml='';
	toastHtml='<div id="toast">'+
	    '<div class="weui_mask_transparent"></div>'+
	    '<div class="weui_toast">'+
	        '<i class="weui_icon_toast"></i>'+
	        '<p class="weui_toast_content">'+overText+'</p>'+
	    '</div>'+
	'</div>';
	$('body').append(toastHtml);
	
	setTimeout(function(){
        var $toast = $('#toast');
		$toast.hide();	
		$toast.remove();
	},2000)
}
